package com.gimi.cloud.jimi.entity.user;

import com.gimi.cloud.jimi.entity.base.BaseTable;

import javax.persistence.*;

/**
 * create by xiankejin on 2017-10-13
 */
@Table(name="rd_user")
public class User extends BaseTable{

	/** 用户ID*/
	@Id
	@Column(name = "user_id")
	private Integer userId;
	/** 用户名*/
	@Column(name = "user_name")
	private String userName;
	/** 用户密码*/
	private String pwd;
	/** 支付密码*/
	@Column(name = "pay_pwd")
	private String payPwd;
	/** 电话号码*/
	@Column(name = "mobile_phone")
	private String mobilePhone;
	/** 手机设备类型(1安卓,2IOS)*/
	@Column(name = "device_type")
	private Integer deviceType;
	/** 设备型号*/
	@Column(name = "unique_version")
	private String uniqueVersion;
	/** 设备唯一码*/
	@Column(name = "unique_information")
	private String uniqueInformation;
	/** app版本号*/
	@Column(name = "app_version")
	private String appVersion;

	/** 状态 1:已锁定，0:未锁定，默认为0 */
	@Column(name = "status")
	private Integer status;


	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getPayPwd() {
		return payPwd;
	}

	public void setPayPwd(String payPwd) {
		this.payPwd = payPwd;
	}

	public Integer getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(Integer deviceType) {
		this.deviceType = deviceType;
	}

	public String getUniqueVersion() {
		return uniqueVersion;
	}

	public void setUniqueVersion(String uniqueVersion) {
		this.uniqueVersion = uniqueVersion;
	}

	public String getUniqueInformation() {
		return uniqueInformation;
	}

	public void setUniqueInformation(String uniqueInformation) {
		this.uniqueInformation = uniqueInformation;
	}

	public String getAppVersion() {
		return appVersion;
	}

	public void setAppVersion(String appVersion) {
		this.appVersion = appVersion;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public User(Integer userId) {
		super();
		this.userId = userId;
	}
	
	public User() {
		super();
	}

	@Override
	public String toString() {
		return "User{" +
				"userId=" + userId +
				", userName='" + userName + '\'' +
				", pwd='" + pwd + '\'' +
				", payPwd='" + payPwd + '\'' +
				'}';
	}
}
